package com.liam.design.observer.sub;

import com.liam.design.observer.sub.Subject;
import lombok.Data;

/**
 * 具体目标
 */

@Data
public class WeatherSubject extends Subject {

    private String content;

    public void setContent(String content){
        this.content = content;
        this.notifyObserver();
    }
}
